#!/bin/bash
#git checkout ui/server/win32/bin/talkcfg.db
chmod -x `find . -name "*.cpp" -o -name "*.h" -o -name "Makefile" -o -name "*.mk" -o -name "*.java" -o -name  "*.xml" -o -name "*.png" -o -name "*.jar"`
git rm `git status |grep delete|awk '{print $2}'`
git add `git status |grep modified|awk '{print $2}'`
git add `git status |grep -v modified|grep -v deleted|grep '\.cpp'|awk '{print $1}'`
git add `git status |grep -v modified|grep -v deleted|grep '\.c'|awk '{print $1}'`
git add `git status |grep -v modified|grep -v deleted|grep '\.h'|awk '{print $1}'`
git add `git status |grep -v modified|grep -v deleted|grep '\.dll'|awk '{print $1}'`
git add `git status |grep -v modified|grep -v deleted|grep '\.lib'|awk '{print $1}'`
git add `git status |grep -v modified|grep -v deleted|grep '\.upd'|awk '{print $1}'`
git add `git status |grep -v modified|grep -v deleted|grep '\.bmp'|awk '{print $1}'`
git add `git status |grep -v modified|grep -v deleted|grep '\.xml'|awk '{print $1}'`
git add `git status |grep -v modified|grep -v deleted|grep '\.java'|awk '{print $1}'`
git add `git status |grep -v modified|grep -v deleted|grep '\.png'|awk '{print $1}'`
